/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.editura.oxygen.severin.imageviewer.features.io.resources;

import de.editura.oxygen.severin.imageviewer.features.knownDatamodels.KnownDatamodel;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author kschmidtner
 */
public class KnownDataModels {

    private List<KnownDatamodel> kdms = new ArrayList<KnownDatamodel>();

    private KnownDataModels() {
        initKdms();
    }

    public static KnownDataModels getInstance() {
        return KnownDataModelsHolder.INSTANCE;
    }

    private static class KnownDataModelsHolder {
        private static final KnownDataModels INSTANCE = new KnownDataModels();
    }

    private void initKdms () {
        kdms = new KnownDatamodelUnmarshaller().unmarshallKnownDatamodels();
    }

    public List<KnownDatamodel> getKdms() {
        return kdms;
    }

 }
